Repository navigation
Python port: add photo reader, library docs, examples, pyproject - #12
Open
avishorwork-wq wants to merge 1 commit into
Open
avishorwork-wq wants to merge 1 commit into
avishorwork-wq wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the photo reader to the Python port and tidies the port for use.
Checks: reader code is AST-identical to the previous source apart from docstrings and comments; pip install . works (modules installed); encode/decode example round-trips; read_photo.py reads a clean code and two kit scenes. Not re-run here: a full 772-scene pass (blurred scenes take minutes each in pure Python). The earlier full-kit count for this reader was 706 of 772, 0 wrong (from the original port work).
Known limits (stated in the README): chain canvas resizes are approximated with Pillow, time budgets are not enforced, slow on hard photos.
Sample run (not a full gate): every 8th bench scene, 97 of 772, run one at a time with a 40 s limit per scene: 68 read with the expected payload, 29 did not finish within the limit, 0 wrong payloads. The reader is slow on hard photos in pure Python. A full 772 pass was not run.